aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <mmosmacs-dev@anu.tgwil.net>2023-04-09 17:51:57 -0400
committerMountain Man <mmosmacs-dev@anu.tgwil.net>2023-04-09 17:51:57 -0400
commitf9f89304ba6c0f789ecab08fbc23991a302052e3 (patch)
tree7210f613963bdd05dcf535aa697f50a2e244bcf4
parentCreate `early-init.el` and `init.el` files (diff)
downloadmmosmacs-f9f89304ba6c0f789ecab08fbc23991a302052e3.tar.gz
mmosmacs-f9f89304ba6c0f789ecab08fbc23991a302052e3.tar.bz2
mmosmacs-f9f89304ba6c0f789ecab08fbc23991a302052e3.zip
Disable superfluous UI elements in Early Init
MMOSMacs is a keyboard-centric environment, there is no use for mouse-centric UI elements such as tool-bars and menu-bars. They are now disabled. This is done in Early Init to prevent them from being initialized in the first place, to prevent visual stutter.
-rw-r--r--early-init.el33
1 files changed, 32 insertions, 1 deletions
diff --git a/early-init.el b/early-init.el
index 21ebdea..24b53b0 100644
--- a/early-init.el
+++ b/early-init.el
@@ -1,6 +1,37 @@
1;;; -*- lexical-binding: t; -*- 1;;; -*- lexical-binding: t; -*-
2;;; init.el 2;;; early-init.el
3;; 3;;
4;; Early Init file for MMOSMacs. This is loaded before the GUI and 4;; Early Init file for MMOSMacs. This is loaded before the GUI and
5;; package system are initialized. This should contain only what 5;; package system are initialized. This should contain only what
6;; absolutely must be in Early Init. 6;; absolutely must be in Early Init.
7
8
9;; ---------------------------------------------------------------------
10;;; UI Adjustments
11;; ---------------
12;; The primary goal of this Section is to prevent Emacs from flashing or
13;; stuttering visually on startup.
14;;
15;; If these customizations were placed in `init.el', as is the norm,
16;; Emacs would initialize the UI elements, then make whatever
17;; customizations we wrote.
18;;
19;; By placing the customizations here, they are applied before the UI is
20;; initialized, preventing any visual glitches altogether.
21;; ---------------------------------------------------------------------
22
23;; ---------------------------------
24;; Disable superfluous UI elements
25;; -------------------------------
26;; These UI elements are useless in
27;; a keyboard-centric environment.
28;; ---------------------------------
29
30;; Disable the menu bar
31(push '(menu-bar-lines . 0) default-frame-alist)
32
33;; Disable the tool-bar
34(push '(tool-bar-lines . 0) default-frame-alist)
35
36;; Disable scroll bars
37(push '(vertical-scroll-bars . 0) default-frame-alist)